package com.zhaoye.service.impl;

import com.zhaoye.dao.PaymentDao;
import com.zhaoye.entities.Payment;
import com.zhaoye.service.PaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author feng
 * @Date 2021/11/10 11:01
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(@Param("id")Long id) {
        return paymentDao.getPaymentById(id);
    }


}
